home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / DefineButton2_1347 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2011-06-09  |  1.1 KB  |  38 lines

  1. on(press){
  2.    _root.dis = 2;
  3.    if(_root.inven._currentframe == 1)
  4.    {
  5.       if(_root.micon._currentframe == 1 && _root.range == true)
  6.       {
  7.          if(_root.even1 == 1)
  8.          {
  9.             _root.sfx.gotoAndStop(3);
  10.             _root.even1 = 2;
  11.             _root.take = 10;
  12.             _root.next_dis1 = 2;
  13.             _root.next_txt1 = "These papers seem useless but I\'ll hold onto them anyway.";
  14.          }
  15.          else
  16.          {
  17.             _root.next_dis1 = 2;
  18.             _root.next_txt1 = "Hmm you dont know what you\'ll find in these lockers around here. It\'d be best to look first";
  19.          }
  20.       }
  21.       if(_root.micon._currentframe == 2)
  22.       {
  23.          if(_root.even1 == 2)
  24.          {
  25.             _root.next_dis1 = 2;
  26.             _root.next_txt1 = "I\'ve removed everything I\'ll need from here.";
  27.          }
  28.          else
  29.          {
  30.             _root.sfx.gotoAndStop(3);
  31.             _root.even1 = 1;
  32.             _root.next_dis1 = 2;
  33.             _root.next_txt1 = "There are some papers in here and a nice paper clip.";
  34.          }
  35.       }
  36.    }
  37. }
  38.